<!DOCTYPE html>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
    <h1>用户管理</h1>
    <a href="/user/create">添加用户</a>
    
    <table border="1">
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>邮箱</th>
            <th>操作</th>
        </tr>
        {volist name="list" id="vo"}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.email}</td>
            <td>
                <a href="/user/{$vo.id}/edit">编辑</a>
                <a href="/user/{$vo.id}/delete" onclick="return confirm('确认删除？')">删除</a>
            </td>
        </tr>
        {/volist}
    </table>
</body>
</html>